import { handleActions } from 'redux-actions'

const init = {
  data: {},
  detail: {}
}

export default
handleActions({
  'reset employ management': (state) => ({
    ...state,
    ...init
  }),
  'fetch employ management': (state, { payload }) => ({
    data: payload
  }),
  'fetch employ management detail': (state, { payload }) => ({
    detail: payload
  })
}, init)
